import Login from "../pages/Login"
import Article from "../pages/Article"

import { createBrowserRouter } from "react-router-dom"
import Layout from "../pages/Layout"
import About from "../pages/About"
import Board from "../pages/Board"
import NotFound from "../pages/NotFound"
import Year from "../pages/Year"
import Month from "../pages/Month"
import New from "../pages/New"

export default createBrowserRouter([
    {
        path: '/',
        element: <Layout />,
        children: [
            { index: true, element: <Month /> },
            // { path: '/board', element: <Board /> },
            { path: '/year', element: <Year /> },
            { path: '/month', element: <Month /> },
            { path: '/new', element: <New /> },
        ]
    },
    {
        path: '/login',
        element: <Login />,
    },
    {
        path: '/article/:id',
        element: <Article />,
    },
    {
        path: '*',
        element: <NotFound />,
    },
])